package com.gitee.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.gitee.pojo.CookbookFood;

public interface ICookbookFoodService extends IService<CookbookFood> {

    /**
     * 根据cookbookId删除关联菜品
     * @param cookbookId
     * @return
     */
    Boolean removeByCookbookId(Integer cookbookId);

    /**
     * 根据cookbookIds删除关联菜品
     * @param cookbookIds
     * @return
     */
    Boolean removeByCookbookIds(Integer[] cookbookIds);

    /**
     * 根据foodId删除关联菜品
     * @param foodId
     * @return
     */
    Boolean removeByFoodId(Integer foodId);

    /**
     * 根据foodIds删除关联菜品
     * @param foodIds
     * @return
     */
    Boolean removeByFoodIds(Integer[] foodIds);
}
